import request from '@/utils/request'
export default{
    getUserLoginRecords(userId){
        return request({
            url:`/admin/core/userLoginRecord/list/${userId}`,
            method:'GET'
        })
    },
    lockOrUnlock(userId,status){
        return request({
            url:`/admin/core/userInfo/lockOrUnlock/${userId}/${status}`,
            method:'PUT'
        })
    },
    getUsers(pageNum,pageSize,search){
        return request({
            url:`/admin/core/userInfo/list/${pageNum}/${pageSize}`,
            method:'GET',
            //请求参数  
            params: search
        })
    }
}